openai

OpenAI: GPT 3.5 Turbo

models/GPT-3.5 Turbo

GPT 3.5 Turbo is OpenAI's fastest model. It can understand and generate natural language or code, and is optimized for chat and traditional completion tasks. Training data up to Sep 2021.
Currency$USD
Input$0.50
Output$1.50
Context window16.4K

Generate API Key Generate your API Key to securely access IndoxHub's AI models. Integrate with OpenAI-compatible tools, run queries, and build powerful AI applications — all with a single secure key.
Endpoint
POSThttps://api.indoxhub.com/api/v1/chat/completions
Configopenai/gpt-3.5-turbo
from indoxhub import Client
 
# Initialize the client
with Client(api_key="[LOGIN TO GET API KEY]") as client:
    # Generate a chat completion
    response = client.chat(
        messages=[{"role":"system","content":"You are a helpful assistant."},{"role":"user","content":"What is machine learning and why is it important?"}],
        model="openai/gpt-3.5-turbo",
        temperature:"0.7"
    )
 
    # Print the response
    print(response["data"])